package com.glsc.ngateway.shortmsg.task;

import com.glsc.ngateway.shortmsg.constant.ShortmsgConstant;

import java.util.HashMap;
import java.util.Map;

/**
 * @Title: FanweiSupport
 * @Description: 泛微支持类
 * @author: 张宁
 * @version: 1.0.0
 * @date: 2020/12/21 16:29
 */


public class ShortMessageSupport {


    public static Map<String, Object> getShortMessageParam(String shortContent, String opStation, String mobile, String sysid) {

        Map<String, Object> map = new HashMap<String, Object>();
        HashMap<String, String> detailMap = new HashMap<String, String>();
        detailMap.put("op_station", opStation);
        detailMap.put("mobile_tel", mobile);
        detailMap.put("notice_content", shortContent);
        detailMap.put("gl_channel_level", "1");
        detailMap.put("gl_send_level", "2");
        detailMap.put("gl_iswap", "0");
        detailMap.put("gl_wapurl", "");
        detailMap.put("gl_smsusername", ShortmsgConstant.sysAccountMap.get(sysid + "username"));
        detailMap.put("gl_smspassword", ShortmsgConstant.sysAccountMap.get(sysid + "password"));
//        detailMap.put("gl_smsusername", "fxc");
//        detailMap.put("gl_smspassword", "fxc");
        //map.put("biz_code","0007915001");
        map.put("biz_code", "0007915002");

        map.put("channel", "34");
        map.put("param", detailMap);
        return map;
    }
}
